//
//  AppDelegate.h
//  BMProject
//
//  Created by MengHuan on 15/4/19.
//  Copyright (c) 2015年 MengHuan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MainNavViewController.h"
#import "GuideView.h"
#import "TabBarView.h"

@class UserModel;
@class JSONModel;


@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) MainNavViewController *mainNavViewController;
@property (strong, nonatomic) UITabBarController *tabBarController;
@property (strong, nonatomic) TabBarView *tabBar;
@property (strong, nonatomic) GuideView *guide;
@property (strong, nonatomic) UserModel *g_UserInfo; // 当前用户对象;

+ (AppDelegate *)appDelegate;

- (UserModel *)getUserInfo;

// 设置主页
- (void)setRootVC;

// 到登陆页面
- (void)toLogin;

// 自动登录
- (void)autologinAction:(UserModel *)userModel;



@end

@protocol CommonClickDelegate<NSObject>

-(void)clickActionWithData:(JSONModel *)data;
-(void)clickActionWithData:(JSONModel *)data AndType:(NSString *)type;
-(void)clickActionWithNSString:(NSString *)string;

@end